package net.brucecooper.mindmap.client;

import gwt.canvas.client.Canvas;

public abstract class SimpleComponent extends GraphicComponent {
    @Override
    public GraphicComponent getWidget(int index) {
        return null;
    }

    @Override
    public int getWidgetCount() {
        return 0;
    }

    
    @Override
    public void add(int index, GraphicComponent comp) {
    }

    @Override
    public void add(GraphicComponent comp) {
    }

    @Override
    public boolean remove(GraphicComponent comp) {
        return false;
    }

    @Override
    public void remove(int index) {
    }

    @Override
    public int getWidgetIndex(GraphicComponent comp) {
        return -1;
    }
    
    @Override
    public void paint(Canvas canvas, Clip clip) {
        paintComponent(canvas, clip);
    }

    @Override
    public void layout(Canvas canvas) {
    }

    
    @Override
    public GraphicComponent findDeepest(int x, int y) {
        return this;
    }

}
